package Domestic;
interface A{
	void method1();
	void method2();
}
interface B extends A{
	void method3();
}
class MyClass implements B{
	public void method1(){
		System.out.println("method1() implemented");
	}
	public void method2(){
		System.out.println("method2() implemented");
	}
	public void method3(){
		System.out.println("method3() implemented");
	}
}
public class InterfaceExtend {
	public static void main(String[] args){
		MyClass mc = new MyClass();
		mc.method1();
		mc.method2();
		mc.method3();
	}
}
